<extend name="Layout/page_detail" />
<block name="content">
{:W('PageHeader/simple',array('name'=>'修改:'.$folder_name,'search'=>'N'))}

    <form method='post' id="form_data" name="form_data" enctype="multipart/form-data"  class="well form-horizontal">
        <input type="hidden" id="id" name="id" value="">
        <input type="hidden" id="ajax" name="ajax" value="0">
        <input type="hidden" id="opmode" name="opmode" value="edit">

        <div class="form-group">
                <label class="col-sm-2 control-label" for="row_id">数据编号*：</label>
                <div class="col-sm-10">
                    <input type="text" id="row_id" name="row_id" value="" class="form-control">
                </div>
            </div><div class="form-group">
                <label class="col-sm-2 control-label" for="tag_id">标签编号*：</label>
                <div class="col-sm-10">
                    <input type="text" id="tag_id" name="tag_id" value="" class="form-control">
                </div>
            </div><div class="form-group">
                <label class="col-sm-2 control-label" for="controller">controller*：</label>
                <div class="col-sm-10">
                    <input type="text" id="controller" name="controller" value="" class="form-control">
                </div>
            </div>
        <div class="form-actions">
            <input class="btn btn-sm btn-primary" type="button" value="保存" onclick="save();">
            <input  class="btn btn-sm btn-default" type="button" value="取消" onclick="go_return_url();">
        </div>
    </form>
</block>

    <script type="text/javascript">
        function save() {
            window.onbeforeunload = null;
            if (check_form("form_data")) {
            sendForm("form_data", "{:U('save')}");
            }
        }

        $(document).ready(function() {

        });
    </script>